package com.study.talk.netty.message.request;

import com.study.common.annotation.Desc;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

@Desc("申请加入群聊请求")
public class ApplyGroupRequest extends TalkMessage {

    @Desc("申请加入群聊的群id")
    private Integer groupId;

    public ApplyGroupRequest(Integer groupId,String createTime){
        this.groupId = groupId;
        super.dateTime = createTime;
    }

    @Override
    public byte getType() {
        return MessageType.APPLY_GROUP_REQUEST;
    }

    public ApplyGroupRequest(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public ApplyGroupRequest() {
    }
}
